package com.project.light.service.impl;

import com.project.light.entity.StationLightingPlan;
import com.project.light.mapper.StationLightingPlanMapper;
import com.project.light.service.StationLightingPlanService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class StationLightingPlanServiceImpl implements StationLightingPlanService {

    @Resource
    private StationLightingPlanMapper stationLightingPlanMapper;

    @Transactional(rollbackFor = Exception.class)
    @Override
    public void insert(StationLightingPlan entity) throws Exception {
        stationLightingPlanMapper.insertSelective(entity);
    }
}
